課程學習


Raw_number = input('請輸入今天溫度')
number = int(Raw_number)
fahrenheit_temperature = (number) * (9/5) + 32
print ('攝氏溫度:'+ str(number)+'度' + '是華氏溫度:' + str(fahrenheit_temperature)+'度')

if fahrenheit_temperature >= 75:
  print ('summer is coming'.lower())
else:
  print ('you should wear coat'.upper())

https://replit.com/@DorothSong/pr3#main.py







你可能感興趣的文章

Command Line

Command Line

Python 使用 ElementTree 寫入 XML 格式檔案與縮排

Python 使用 ElementTree 寫入 XML 格式檔案與縮排

關於 React 小書:評論功能(六):刪除評論、預防 XSS

關於 React 小書:評論功能(六):刪除評論、預防 XSS






留言討論